﻿@{
    ViewBag.Title = "Test";
    Layout = "~/Views/Shared/Admin_Layout.cshtml";
}
<div class="load_page">
    <div class="formEl_b">
        <form action="#" id="validation">
        <fieldset>
            <legend>Add Categories</legend>
            <div class="section ">
                <label>
                    Name</label>
                <div>
                    <input name="text" id="required" type="text" name="name" class="validate[required] large">
                </div>
            </div>
            <div class="section textonly">
                <label>
                    Url <small>Autocomplete</small></label>
                <div>
                    <input name="url" type="text" class="large">
                </div>
            </div>
            <div class="section">
                <label>
                    Description</label>
                <div>
                    <textarea name="editor" id="editor"  class="editor"  cols="" rows=""></textarea>
                </div>
            </div>
            <div class="section ">
                <label>
                    Tags</label>
                <div>
                    <input name="tag" type="text" class="large">
                </div>
            </div>
            <div class="section numericonly">
                <label>
                    Order</label>
                <div>
                    <input name="order" type="text" class="small">
                </div>
            </div>
            <div class="section">
                <label>
                    Status</label>
                <div>
                    <select name="status">
                        <option value="1">Enable</option>
                        <option value="0">Disable</option>
                    </select>
                </div>
            </div>
            <div class="section last">
                <div>
                    <input type="submit" class="uibutton" id="add" value="Add" />
                    <input type="reset" class="uibutton confirm" value="Reset" />
                </div>
            </div>
        </fieldset>
        </form>
    </div>
</div>
<script>
    $(document).ready(function () {
        $("#add").click(function (e) {
            e.preventDefault();
            var status = $("select[name=status]").val();
            alert(status);
        });
        //$('#validation').validationEngine('validate');
    });
</script>
